﻿Public Class NhapChiTietDT
    Private _ma As String
    Public Property Ma
        Get
            Return _ma
        End Get
        Set(ByVal value)
            _ma = value
        End Set
    End Property

    Private _stt As Integer
    Public Property STT
        Get
            Return _stt
        End Get
        Set(ByVal value)
            _stt = value
        End Set
    End Property

    Private _maLoai As Integer
    Public Property MaLoai
        Get
            Return _maLoai
        End Get
        Set(ByVal value)
            _maLoai = value
        End Set
    End Property

    Private _soluong As Double
    Public Property SoLuong
        Get
            Return _soluong
        End Get
        Set(ByVal value)
            _soluong = value
        End Set
    End Property

    Private _maNCC As String
    Public Property MaNCC
        Get
            Return _maNCC
        End Get
        Set(ByVal value)
            _maNCC = value
        End Set
    End Property

    Private _ghiChu As String
    Public Property GhiChu
        Get
            Return _ghiChu
        End Get
        Set(ByVal value)
            _ghiChu = value
        End Set
    End Property

    'search
    Public Sub New(ByVal ma As String, ByVal stt As Integer)
        Me._stt = stt
        Me._ma = ma
    End Sub

    'khoitao
    Public Sub New(ByVal ma As String, ByVal stt As Integer, ByVal maLoai As String, ByVal soluong As Double, ByVal ncc As String, ByVal ghichu As String)
        Me._stt = stt
        Me._ma = ma
        Me._maLoai = maLoai
        Me._maNCC = ncc
        Me._soluong = soluong
        Me._ghiChu = ghichu
    End Sub
    Public Sub New(ByVal ma As String, ByVal stt As Integer, ByVal maLoai As String, ByVal soluong As Double, ByVal ghichu As String)
        Me._stt = stt
        Me._ma = ma
        Me._maLoai = maLoai
        Me._soluong = soluong
        Me._ghiChu = ghichu
    End Sub

    'Update
    Public Sub New(ByVal ma As String, ByVal stt As Integer, ByVal ncc As String, ByVal ghichu As String)
        Me._stt = stt
        Me._ma = ma
        Me._maNCC = ncc
        Me._ghiChu = ghichu
    End Sub
End Class
